import { extractVideo } from './extract';
import { chat } from './chat';

// const DEFAULT = '欢迎使用，我会即时回复您的要求';

export default async (content: string, env: Env) => {
	let reply = await extractVideo(content);
	if (reply) return reply;
	reply = await chat(content, env.OPENROUTER_API_KEY);
	return reply;
};
